---
title: Checkbox
description: A control that allows the user to toggle between checked and not checked.
shadcnDocsLink: https://ui.shadcn.com/docs/components/checkbox
---

<ComponentPreview component="checkbox">
  ```tsx file=<rootDir>/src/examples/ui/checkbox.tsx
  ```
</ComponentPreview>

## Installation

<Installation component="checkbox">
  ```tsx file=<rootDir>/src/components/ui/checkbox.tsx
  ```
</Installation>

## Usage

```ts
import { Checkbox } from '@/components/ui/checkbox'
```

```tsx
<Checkbox />
```